import request from '@/utils/request'

export function getTemplate(templateOwnerType, templateOwner) {
  return request({
    url: '/recordApi/print/template',
    method: 'get',
    params: {
      templateOwnerType,
      templateOwner
    }
  })
}

export function saveTemplate(printTemp) {
  return request({
    url: '/recordApi/print/template',
    method: 'patch',
    data: {
        printTemp
    }
  })
}